// 登录接口
import axios from '@/utils/requst'
export const reqLogin = (data) =>
  axios({
    method: 'post',
    url: '/api/login',
    data
  })
export const reqReg = (data) =>
  axios({
    method: 'post',
    url: '/api/reg',
    data
  })
export const reqGetUserInfo = () => {
  return axios({
    method: 'GET',
    url: '/my/userinfo',
    headers: {
      Authorization: localStorage.getItem('token')
    }
  })
}
